class CreateTaobaokeItems < ActiveRecord::Migration
  def self.up
    create_table :taobaoke_items do |t|
      t.string :iid, :null => false
      t.string :title, :null => false
      t.string :nick, :null => false
      t.string :pic_url
      t.decimal	:price,	:precision => 10, :scale => 2, :default => 0.0, :null => false
      t.string :click_url, :null => false
      t.string :commission
      t.string :commission_rate
      t.string :commission_num
      t.string :comminssion_volume
      t.boolean :status, :default => 1
      t.timestamps
    end
  end

  def self.down
    drop_table :taobaoke_items
  end
end
